package com.example.produces.mapper;

import com.example.produces.entity.Plan;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository//数据访问层 (DAO 层 ) 的类标识为bean
public interface PlanMapper {
    List<Plan> findAll();
    void add(Plan plan);
    Plan findOne(String name);
    void upDate(Plan pay);
    void delete(String name);
}
